interface FetchIntercityTicketSetDetailAPIResData {
  code: number
  msg: string
  time: string
  data: {
    intercity_info: IntercityTicketSet
    intercity_detail: IntercityTicket[]
  }
}

interface FetchIntercityTicketSetDetailAPIParams {
  id: string
  days: string
}

export function fetchIntercityTicketSetDetailAPI(params: FetchIntercityTicketSetDetailAPIParams, token: string) {
  return httpInstance.get<FetchIntercityTicketSetDetailAPIResData, FetchIntercityTicketSetDetailAPIParams>(
    '/api/intercity/detail',
    { params, headers: { token } },
  )
}
